package com.bwie.controller;

import com.bwie.service.ApprService;
import com.bwie.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TaoShiHao
 * @Date: 2025/5/27 16:22
 * @Description:
 **/
@RestController
@RequestMapping("/shop/addr")
@Api(tags = "供应商管理")
public class ApprController {

    @Autowired
    ApprService apprService;

    @PostMapping("/getApprList")
    @ApiOperation(value = "获取所有供应商")
    public Result getApprList(){
        return apprService.getApprList();
    }
}
